package com.example.covid.Vo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author KamenRider
 */
public class InfQuery extends Page{

  /** 地区名称 */
  private String areaName;

  /** 起始日期 */
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date startDate;

  /** 结束日期 */
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date endDate;

    public InfQuery() { }

    public InfQuery(String areaName, Date startDate, Date endDate) {
        this.areaName = areaName;
        this.startDate = startDate;
        this.endDate = endDate;
    }

    public InfQuery(Integer page, Integer limit, String areaName, Date startDate, Date endDate) {
        super(page, limit);
        this.areaName = areaName;
        this.startDate = startDate;
        this.endDate = endDate;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }
}
